//
//  UIImage+Extension.m
//  DSJY
//
//  Created by lx on 16/12/20.
//  Copyright © 2016年 dsjy. All rights reserved.
//

#import "UIImage+Extension.h"
#import "UIImage+Gif.h"

@implementation UIImage (Extension)

+ (UIImage *)imageWithGifName:(NSString *)gifName
{
    NSString *filePath = [[NSBundle bundleWithPath:[[NSBundle mainBundle] bundlePath]] pathForResource:gifName ofType:nil];
    NSData  *imageData = [NSData dataWithContentsOfFile:filePath];
    return [UIImage sd_animatedGIFWithData:imageData];
}

@end
